<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /*媒体类型 all(默认值) screen print speech*/
    /*媒体查询逻辑 与(and) 或(,) 非(not)*/
    /*5.媒体特征表达式
    width/max-width/min-width
    -webkit-device-pixel-ratio/-webkit-max-device-pixel-ratio/-webkit-min-pixel-ratio
    orientation
    landscape/portrait 1
    height
    device-width/device-height
    screen.width/screen.height
    aspect-ratio 视口的宽高比*/

    /* @media screen and (min-width:900px) and (max-width:1024px) {
      body {
        background: #000;
      }
    } */
    @media screen and (min-width:1024px), screen and (max-width:900px) {
      body {
        background: #000;
      }
    }
    /* @media not screen and (min-width:1024px),not screen and (max-width:900px) {
      body {
        background: #000;
      }
    } */
  </style>
</head>

<body>

</body>

</html>